package com.dongdongshop.service;


import com.dongdongshop.pojo.TbOrder;
import com.dongdongshop.pojo.TbOrderItem;
import com.dongdongshop.pojo.TbUser;
import com.dongdongshop.vo.Information;
import com.dongdongshop.vo.OrderAdminVO;
import com.dongdongshop.vo.OrderVO;

import java.util.List;

public interface OrderService {
    //增加订单表
    OrderVO addOrder(Long addressId, String paymentType, TbUser user);


    // 查询用户订单信息
    List<Information> getOrderSend(String username);

    /**
     * 按订单号和支付宝流水号和状态查找订单
     * @param WIDTRout_trade_no = 订单号
     * @param widtRtrade_no = 支付宝流水号
     * @return
     */
    List<TbOrderItem> findOrderByOrderNoAndTradeNoAndStatus(String WIDTRout_trade_no, String widtRtrade_no);

    /**
     * 根据退款请求号修改订单明细支付状态
     * @param refundOrderNum = 退款请求号
     * @return
     */
    void updateOrderStatus(String refundOrderNum);

    /**
     * 修改订单支付状态
     * @param order = 订单对象信息
     * @return
     */
   void updateOrderStatus(TbOrder order);


    List<OrderAdminVO> findSellerOrderInfo(String startDate, String endDate, String sellerId);

    List<Information> getEvalute(String username);
}
